package com.charlotte.study.gupao.decorator.gper;

/**
 * @author junjie.ding
 * @date 2020/3/9
 */
public class Test {

    public static void main(String[] args) {

        // 未登录用户
        NavBar navBar = new BaseNavBar();
        System.out.println("未登录的导航栏：" + navBar.showNavBar().toString());


        // 已登录用户
        navBar = new UserNavBar(navBar);
        System.out.println("登录后的导航栏：" + navBar.showNavBar().toString());


    }
}
